import os
import sys
from dimension import *

TEMPLATE_FILE = os.path.join(os.path.dirname(__file__),'data/template.ini')
print __file__
print os.path.abspath (__file__)
a = Dim('a', 10,+0.1,-0.2, note='test dimension')
b = Dim('b', 12, accuracy='H12', note='b dim')
print a
print b

print 'a+b=', a+b
print 'a-b=', a-b
print 'a*b=', a*b
#print 'a/b=', a / b
print 'a**2=', a**2

print 'a+2=', a+2
print 'a-2=', a-2
print 'a*2=', a*2
#print 'a/2=', a / b


ser = DimSeries('ser')
ser.add_dim(a)
ser.add_dim(b)
print 'ser=', ser
ser.formula = 'sin(a)*b'
print ser
